﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_19_2021
{
    class Character
    {
        public string Name { get; set; }
        public string Introduce { get; set; }
        public string PlayerName { get; set; }
        public double Attack { get; set; }
        public double Defense { get; set; }
        public double Speed { get; set; }
        public string Skill { get; set; }
        public string Skill2 { get; set; }
        public string Skill3 { get; set; }

        public Character(string name, string introduce, string playername,double attack,double defense,double speed,string skill,string skill2,string skill3)
        {
            this.Name = name;
            this.Introduce = introduce;
            this.PlayerName = playername;
            this.Attack = attack;
            this.Defense = defense;
            this.Speed = speed;
            this.Skill = skill;
            this.Skill2 = skill2;
            this.Skill3 = skill3;
        }

        public void GetInfor()
        {
            Console.WriteLine("我是：{0}，我的信息：{1}，我的昵称：{2}，攻击力：{3}，防御力：{4}，速度：{5}，" +
                "              技能1：{6}，技能2：{7}，技能3：{8}"，this.PlayerName,this.Introduce,this.Name,this.Attack,this.Defense,this.Speed,this.Skill,this.Skill2,this.Skill3);
        }
    }
}
